package com.sunny.excel.enumeration;



import com.sunny.excel.exception.ErrorMessage;

public enum BizErrorEnum implements ErrorMessage {
    UPLOAD_ERROR("文件上传错误", "UP0001"),

    ;

    private String message;
    private String code;

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getMessageKey() {
        return this.getClass().getSimpleName() + "." + code;
    }


     BizErrorEnum(String code, String message) {
        this.message = message;
        this.code = code;
    }

}
